When a windowPreview is hovered or selected, it will show its window's
title as a caption. That title may contain Newline characters which will
effect the windowPreview size. Make the caption's St.Label use single
line mode to prevent that.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4162
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1822>
text: this._getCaption(),
reactive: true,
});
+ this._title.clutter_text.single_line_mode = true;
this._title.add_constraint(new Clutter.BindConstraint({
source: windowContainer,
coordinate: Clutter.BindCoordinate.X,